home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Financial / Stopwatch2.3 / Source / Expense.h < prev    next >
Text File  |  1995-06-12  |  639b  |  35 lines

  1. /*
  2.  * Manage the information regarding a single Expense record for
  3.  * a single client.
  4.  *
  5.  * For legal stuff see the file COPYRIGHT
  6.  */
  7. #import <objc/Object.h>
  8.  
  9. @interface Expense : Object
  10. {
  11.   char    *dateString;
  12.   char    *description;
  13.   float    amount;
  14. }
  15.  
  16. - free;
  17. - init:(const char *)date
  18.        description:(const char *)desc
  19.        amount:(const float)amt;
  20.  
  21. - read: (NXTypedStream *) stream;
  22. - write:(NXTypedStream *) stream;
  23.  
  24. - setAmount:(float)value;
  25. - setDateString:(const char *)str;
  26. - setDescription:(const char *)desc;
  27.  
  28. - (float)amount;
  29. - (const char *)dateString;     /* mm/dd/yy */
  30. - (const char *)description;
  31.  
  32. - (int)dateValue;
  33.  
  34. @end
  35.